﻿using System.Windows;
using StructureMap;

namespace LuceneSearch.ContactApp
{
    public partial class SearchScreen
    {
        private readonly SearchScreenModel model;

        public SearchScreen()
        {
            InitializeComponent();

            model = ObjectFactory.GetInstance<SearchScreenModel>();
            DataContext = model;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            model.Search();
        }
    }
}
